package com.northpool.operator.http.bean;

import javax.xml.bind.annotation.*;
import java.util.List;

@XmlRootElement(name = "resultApi")
@XmlAccessorType(XmlAccessType.FIELD)
public class ResultApiBean {
    @XmlElement(
            name = "url"
    )
    String url;
    @XmlElement(
            name = "method"
    )
    RequestMethodEnum method;
    @XmlElement(
            name = "timeout"
    )
    Long timeout;

    @XmlElementWrapper(
            name = "resultParam"
    )
    @XmlElement(
            name = "param"
    )
    List<ExpParamBean> resultParam;

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public RequestMethodEnum getMethod() {
        return method;
    }

    public void setMethod(RequestMethodEnum method) {
        this.method = method;
    }

    public Long getTimeout() {
        return timeout;
    }

    public void setTimeout(Long timeout) {
        this.timeout = timeout;
    }

    public List<ExpParamBean> getResultParam() {
        return resultParam;
    }

    public void setResultParam(List<ExpParamBean> resultParam) {
        this.resultParam = resultParam;
    }
}
